// 资讯分类

import request from '@/utils/request'
// 数据渲染
export const contentInfo = params => {
  return request({
    url: '/content/cate',
    method: 'get',
    params
  })
}

// 增加
export const addContentInfo = data => {
  return request({
    url: '/content/cate',
    method: 'post',
    data
  })
}

// 拿到回显的id
export const ContentInfoId = id => {
  return request({
    url: `/content/cate/${id}`,
    method: 'get'
  })
}

// 修改
export const putContentInfoId = data => {
  return request({
    url: `/content/cate/${data.id}`,
    method: 'put',
    data
  })
}
